package Controle;

import java.util.ArrayList;
import java.util.List;

import modelo.Aluno;
import modelo.Disciplina;

public class DisciplinaControle {
	
	private static DisciplinaControle instance;
	private static List<Disciplina> disciplinas = new ArrayList<Disciplina>();
	
	public static synchronized DisciplinaControle getInstance() {
		if(instance == null){
			instance = new DisciplinaControle();
		}
		return instance;
	}
	
	public void criarDisciplina(Disciplina d){
		disciplinas.add(d);
	}
	
	public void removerDisciplina(Disciplina d){
		disciplinas.remove(d);
	}

}
